<html lang="zh-CN" style="font-size: 53.3333px;"><head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="xiaoke">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0,uc-fitscreen=yes">
    <meta name="screen-orientation" content="portrait">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="x5-fullscreen" content="true">
    <meta name="x5-orientation" content="portrait">
    <meta name="x5-page-mode" content="app">
    <meta name="apple-mobile-web-app-title" content="{:config('web_webname')}">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telphone=no, email=no">
    <title>用户登录 - {:config('web_webname')}</title>
    <link rel="stylesheet" type="text/css" href="//cdn.istt.cn/Ver/1.0/wap/app.css">
    <link rel="stylesheet" type="text/css" href="//cdn.istt.cn/Ver/1.0/css/style.css">
    <link rel="stylesheet" type="text/css" href="/Static/mobile/css/animate.css"/>
    <link rel="stylesheet" type="text/css" href="/Static/mobile/css/iconfont.css"/>
    <style></style>
<link href="https://cdn.istt.cn/Ver/1.0/wap/need/layer.css?2.0" type="text/css" rel="styleSheet" id="layermcss"></head>
<body class="o-y bg-bai" ontouchstart="">
<div id="ajaxshow"></div>
<div class="w100 bg-qing dk t-v t-l"><span class="w10 h8 t-v f6" onclick="history.back(-1);"><i class="icon icon-pleft f10 bold"></i></span> <span class="w55 h8 t-v f8 bold">用户登陆</span>
    <div class="dropdown">
        <div class="w10 h8 t-v dropdown-menu"><i class="icon icon-more f10 bold"></i></div>
        <dl class="dropdown-list animated fadeInUp" style="left:-0.5rem;"><span class="arrowtop tmr"></span>
            <dd><a class="p2 t-c" href="{:url('index/reg')}">注册账号</a></dd>
            <dd><a class="p2 t-c" href="{:url('index/find')}">找回密码</a></dd>
        </dl>
    </div>
    <div class="animated dropdown-desc">&nbsp;</div>
</div>
<div class="w100">
    <div class="p3">
        <div class="mt4 h8 bb"><input type="text" value="" class="form wh p0 no" id="user" placeholder="请输入登陆账号" maxlength="32"></div>
        <div class="mt3 h8 bb"><input type="password" class="form wh p0 no" id="pass" placeholder="请输入登陆密码" maxlength="32"></div>
        <div class="mt6 t-l"><label class="checkbox i-checks"> <input type="checkbox" id="mode" value="1"><i></i>
            记住登陆状态 <font class="f2 hui ml4">(在公共设备登陆时请不要勾选)</font> </label></div>
        <div class="mt7 btn btn-md btn-qing w100 h9" onclick="ajax_button();">登 陆</div>
        <div class="mt7 o-h"><span class="fl"><a class="lan" href="{:url('index/find')}">忘记密码?</a></span> <span class="fr"><a class="lan" href="{:url('index/reg')}">注册账号</a></span></div>
        <div class="mt10 mb3 t-c"><p class="f2 hui">Copyright © 2020 {:config('web_webname')}</p></div>
    </div>
</div>

<script type="text/javascript" src="/Static/mobile/js/zepto.min.js"></script>
<script type="text/javascript" src="/Static/config/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="//cdn.istt.cn/Ver/1.0/wap/layer.min.js"></script>
<script src="/Static/config/js/main.js"></script>
<script src="/Static/config/js/app2.js"></script>
<script>
    function ajax_button() {
        var user, pass, mode, from;
        user = $('#user').val();
        pass = $('#pass').val();
        if (!user || user == '') {
            $('#user').focus();
            x.msg("请输入登陆账号!");
            return false;
        } else if (!pass || pass == '') {
            $('#pass').focus();
            x.msg("请输入登陆密码!");
            return false;
        }
        mode = $('#mode').is(':checked') ? 1 : 0;
        from = {
            username: user,
            password: pass,
            mode: mode,
        };
        var load = x.loading();
        app.ajax("{:url('LoginAjax/UserLogin')}", from, function (data) {
            layer.close(load);
            if (data.code === 0) {
                x.loading(data.msg);
                setTimeout(function () {
                    window.location.href = "{:url('pc/index')}";
                }, 1000)
            } else {
                x.btn('登录失败', data.msg, '');
            }
        }, '', false);
    }
</script>
</body></html>